﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
namespace BLL
{
    public class gameAccountBLL
    {
        private IgameAccountDAL gameAccountDAL = DALFactory.DateAccess.GetgameAccountDAL();
        public IQueryable<gameAccount> GetGameAccounts(int uid)
        {
            return gameAccountDAL.GetGameAccounts(uid);
        }
        public int AddGameAccount(int userid, int gameServer, string playName)
        {
            return gameAccountDAL.AddGameAccount(userid, gameServer, playName);
        }
        public void UpdateGameAC(int uid, int b, string c)
        {
            gameAccountDAL.UpdateGameAC(uid, b, c);
        }
        public void RemoveGameAccount(int id)
        {
            gameAccountDAL.RemoveGameAccount(id);
        }
    }
}
